@layout("/common/_container.html",{js:["/assets/transport/dispatch/gaidizhi.js"]}){

<style>
	.layui-badge-rim, .layui-colla-content, .layui-colla-item, .layui-collapse, .layui-elem-field, .layui-form-pane .layui-form-item[pane], .layui-form-pane .layui-form-label, .layui-input, .layui-layedit, .layui-layedit-tool, .layui-quote-nm, .layui-select, .layui-tab-bar, .layui-tab-card, .layui-tab-title, .layui-tab-title .layui-this:after, .layui-textarea {
    	border-color: #89d19d;
    }
    .layui-form-pane .layui-form-label {
   	 	background-color: #e6e6e6;
	}
       #container{
           width: 250px;
           height: 250px;
           background-color:black;
       }
</style>
<div class="layui-body-header">
    <span class="layui-body-header-title">Edit</span>
</div>
<div class="layui-fluid " style="">
    <div class="layui-card">
        <div class="layui-card-body">
            <form id="basicAddressForm" lay-filter="basicAddressForm" class="layui-form layui-form-pane" style="max-width: 700px;margin: 40px auto;">
                <input name="id" type="hidden"/>
                <input id="set_longitude" value="${set_longitude!}" type="hidden"/>
                <input id="set_latitude" value="${set_latitude!}" type="hidden"/>
                <fieldset class="layui-elem-field layui-field-title" style="margin-top: 10px;">
                    <legend>Edit Address</legend>
                </fieldset>
                <div class="layui-form-item">
                    <label class="layui-form-label" style="font-weight: 600;">Unloading Address<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="address" name="address" placeholder="Please enter address" type="text" class="layui-input" lay-verify="required" required/>
                        <button class="layui-btn" type="button" id="selectlocation"><i class="layui-icon">&#xe715;</i>Select Location</button>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label" style="font-weight: 600;">Longitude<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="longitude" name="longitude" placeholder="Please enter longitude" type="text" class="layui-input" lay-verify="required" required readonly="readonly" style="background: #E7EAED"/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label" style="font-weight: 600;">Latitude<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="latitude" name="latitude" placeholder="Please enter latitude" type="text" class="layui-input" lay-verify="required" required readonly="readonly" style="background: #E7EAED"/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">Kilometers</label>
                    <div class="layui-input-block">
                        <input id="kilometer" name="kilometer" placeholder="Please enter delivery kilometers" type="number" class="layui-input" lay-verify="" required/>
                        <button class="layui-btn" type="button" id="selectdistance"><i class="layui-icon">&#xe716;</i>Calculate Distance</button>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block" style="margin-top: 50px;">
                        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>&emsp;Submit&emsp;</button>
                        <button class="layui-btn layui-btn-primary" type="button" id="backupPage">&emsp;Back&emsp;</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>

@}